package cn.tedu.myback.response;

import lombok.Getter;

@Getter
public enum AppCode {

    SUCCESS(0, "请求成功"),
    FAILED(1001, "请求失败"),
    VALIDATE_ERROR(1002, "参数校验失败"),
    RESPONSE_PACK_ERROR(1003, "response返回包装失败"),
    APP_ERROR(2000, "业务异常"),

    USER_ERROR(5001, "用户不存在"),
    FILE_UPLOAD_FAIL(6001, "文件上传失败"),
    ;

    private int code;
    private String msg;

    AppCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}

